package pwd.allen.construct.decorator;

import pwd.allen.construct.common.IConnection;

/**
 * @author 门那粒沙
 * @create 2021-05-20 20:45
 **/
public abstract class ConnectionDecorator implements IConnection {
    private IConnection connection;
    public ConnectionDecorator(IConnection connection) {
        this.connection = connection;
    }

    @Override
    public void pingConnection(String host, int port, String dbName) {
        this.connection.pingConnection(host, port, dbName);
    }
}
